<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>导出图片和数据到Excel</title>
</head>
<body>
</body>
<script src="export2Excel.js"></script>
<script>
    // tHeader和tbody的数据需要一一对应
    let tHeader = [
		'<th colspan=2>鲜花</th>',
		'颜色',
		'照片'
	]
	let tbody = [
		{
			name: '<td align="center" colspan=3>玫瑰花</td>',
			a:'<td><span style="color:red" >ssssssssss</span></td>',
			aa:'',
			pic: ''
		},
		{
			name: '菊花',
			color: '黄色',
			aa:'',
			pic: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1506844670,1837003941&fm=200&gp=0.jpg'
		},
		{
			name: '牵牛花',
			color: '紫色',
			aa:'',
			pic: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3056120770,1115785765&fm=27&gp=0.jpg'
		}
	]
	export2Excel(tHeader, tbody, '我爱花朵')
</script>
</html>